package com.raja.servingStation.common.util;

/**
 * Created by tianjie on 2017/5/4.
 */
public enum ReturnCodes {
    ERR_UPLOAD_FILE(10020001,"上传文件失败","上传文件失败"),
    ERR_EMPTY_FILE(10020002,"空文件","空文件"),
    ERR_FILE_NOT_FOUND(10020003,"文件不存在","文件不存在"),
    ERR_FILE_NAME_PATTERN(10020004,"文件格式错误","文件格式错误"),
    ERR_GEN_MD5(10020005,"MD5生成失败","MD5生成失败"),
    ERR_SQL_EXECUTE(10020006,"数据库执行异常","系统内部异常"),
    ERR_STORE_FILE_TO_FTPSERVER(10020007,"上传到ftp服务器失败","上传到ftp服务器失败"),
    ERR_FILE_HAS_UPLOADED(10020008,"文件已经上传，版本号已经存在","文件已经上传，版本号已经存在"),
    ERR_LOGIN_ERROR(10020009,"登录ftp失败","登录ftp失败"),
    PARAM_NO_NORMAL(1002,"参数值不规范","参数值不规范"),
    ERR_param_ERROR(1002,"参数错误","参数错误"),
    REQUEST_EXCEPTION(1002,"服务器异常","内部错误"),
    LOGOUT_SUCCESS(1000,"退出成功","退出成功"),
    HANDLE_SUCCESS(1000,"退出成功","退出成功"),
    GET_CODE_SUCCESS(1000,"获取验证码成功","获取验证码成功"),
    GET_CODE_LIMIT_5(1002,"获取验证码次数超过5次","获取验证码次数超过5次"),
    GET_CODE_LIMIT_10(1002,"获取验证码次数超过10次","获取验证码次数超过10次"),
    TWO_PASSWORD_NO_EQUAL(1006,"两个密码不一致","两个密码不一致"),
    CODES_ERROR(1007,"验证码不对","验证码不对"),
    CODES_EXPIRED(1002,"验证码已过期","验证码不存在或者已过期"),
    OPERATION_SUCCESS(1000,"修改成功","修改成功"),
    CHECK_PASSWORD_ERROR(1002,"原密码错误","原密码错误"),
    PASSWORD_ERROR(1002,"账号或者密码错误","账号或者密码错误"),
    USER_NO_EXITS(1002,"用户不存在","用户不存在"),
    ERR_SMS_SEND_FAILED(1002,"验证码发送失败，可能是服务器正忙，请稍后再试","验证码发送失败，可能是服务器正忙，请稍后再试"),
    USER_IS_EXITS(1002,"电话号码已存在","电话号码已存在"),
    CAR_IS_NOT_EXITS(1002,"车牌号不存在","车牌号不存在"),
    CLAIM_IS_OVER(1002,"此索赔单已经处理完毕","此索赔单已经处理完毕"),
    CLAIM_TYPE_IS_ERROR(1002,"责任类型不对：除客户原因以外,其他都可以进行索赔","责任类型不对：除客户原因以外,其他都可以进行索赔"),
    CLAIM_RANGE_OVER(1002,"此维修单的零部件已经超出保养周期，不能进行索赔","此维修单的零部件已经超出保养周期，不能进行索赔"),
    CLAIM_IS_NOT_OVER(1002,"此订单的索赔未处理，不能再次提交索赔","此订单的索赔未处理，不能再次提交索赔"),
    ORDER_NO_COMPONENT(1002,"此订单没有零部件更换","此订单没有零部件更换"),
    ORDER_NO_FAULT_DIACRISIS(1002,"此订单没有故障诊断","此订单没有故障诊断"),
    ORDER_IS_NOT_EXIT(1002,"订单不存在或者数据有误","订单不存在或者数据有误"),
    FIRST_INSURANCE_ORDER_IS_ONLY_ONE(1002,"首保单只能索赔一次","首保单只能索赔一次"),
    NEW_OLD_PASSWORD_IS_NOT_SAME(1002,"修改的密码不能与原密码相同","修改的密码不能与原密码相同");
    private int errorCode;

    private String innerMsg;

    private String outMsg;

    ReturnCodes(int errorCode, String innerMsg, String outMsg) {
        this.errorCode = errorCode;
        this.innerMsg = innerMsg;
        this.outMsg = outMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getInnerMsg() {
        return innerMsg;
    }

    public void setInnerMsg(String innerMsg) {
        this.innerMsg = innerMsg;
    }

    public String getOutMsg() {
        return outMsg;
    }

    public void setOutMsg(String outMsg) {
        this.outMsg = outMsg;
    }
}
